<template>
  <div v-if="addShow">
    <h3>ADD Source Data</h3>
    <ProvideFormVue 
    :formData="formData"
    :SelectData="SelectList"
    @Confirm="handleAddFormData(formData)"
      />
  </div>
</template>
<script>
import ProvideFormVue from './ProvideForm.vue';
export default {
  data() {
    return {
        addShow:false,
        formData:{
            sourceName:"",
            description:"",
            type:"MQTT",
            host:"",
            port:"",
            sourceLocation:"",
        },
        SelectList:['MQTT','AK47','AWM','M416']
    }
  },
  components:{
    ProvideFormVue
  },
  computed:{

  },
  methods:{
    handleAddFormData(formData){
        console.log("ADD",formData)
    }
  },
}
</script>
<style scoped>

</style>
